home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / mac / allfiles / Storm / storm7.dir / 00006_Script_video frame < prev    next >
Text File  |  1999-04-26  |  899b  |  45 lines

  1. global theState
  2. property myVideo, myInfo
  3.  
  4. on beginSprite 
  5.   set myVideo = 2
  6.   set myInfo = 3
  7.   set theState = #play
  8. end
  9.  
  10. on exitFrame
  11.   if the mTime of sprite myVideo = the stopTime of sprite myVideo then
  12.     set the mTime of sprite myVideo = 0
  13.     set the mRate of sprite myVideo = 0
  14.     cursor[17,18]
  15.     set theState = #pause
  16.     sendSprite(myInfo, #fadeIn)
  17.   end if
  18.   go the frame
  19. end
  20.  
  21. on mouseUp
  22.   if rollover(myVideo) then
  23.     set theState = #play
  24.     sendSprite(myInfo, #fadeOut)
  25.     set the mTime of sprite myVideo = 0
  26.     set the mRate of sprite myVideo = 1
  27.   else
  28.     if theState = #play then
  29.       cursor[17,18]
  30.       set theState = #pause
  31.       set the mRate of sprite myVideo = 0
  32.     else
  33.       cursor[15,16]
  34.       set theState = #play
  35.       sendSprite(myInfo, #fadeOut)
  36.       set the mRate of sprite myVideo = 1
  37.     end if
  38.   end if
  39. end
  40.  
  41.  
  42.  
  43.  
  44.  
  45.